package com.dgw.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-boot-config-01
 * @description:
 * @author: Mr.Dai
 * @create: 2019-11-25 23:00
 **/
@RestController
public class HelloController {

    @Value("${person.last-name}")
    private String name;

    @GetMapping("/sayHello")
    public String sayHello(){
        return this.name+"say hello";
    }
}
